package com.mdd.front.service.product;

import com.mdd.common.core.PageResult;
import com.mdd.front.validate.car.CarSpuSearchValidate;
import com.mdd.front.validate.product.ProductSpuSearchValidate;
import com.mdd.front.vo.car.CarInitDataVo;
import com.mdd.front.vo.car.CarSpuDetailVo;
import com.mdd.front.vo.car.CarSpuListVo;
import com.mdd.front.vo.spu.MallSpuVo;
import com.mdd.front.vo.spu.ProductSpuDetailVo;
import com.mdd.front.vo.spu.ProductSpuVo;

/**
 * 商品spu服务接口类
 * @author LikeAdmin
 */
public interface IProductSpuFrontService {

    /**
     * 商品spu列表
     *
     * @author LikeAdmin
     * @param searchValidate 搜索参数
     * @return PageResult<ProductSpuListedVo>
     */
    PageResult<ProductSpuVo> page(ProductSpuSearchValidate searchValidate);
    /**
     * 商品spu列表
     *
     * @author LikeAdmin
     * @param searchValidate 搜索参数
     * @return PageResult<ProductSpuListedVo>
     */
    PageResult<MallSpuVo> mallPage(ProductSpuSearchValidate searchValidate);
    /**
     * 商品spu详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return ProductSpuDetailVo
     */
    ProductSpuDetailVo detail(Long id);
    /**
     * 商品spu详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return ProductSpuDetailVo
     */
    ProductSpuDetailVo mallDetail(Long id);

    /**
     * 初始化字典数据
     * @return
     */

    CarInitDataVo initCarProductData();

    /**
     *
     * @param carSpuSearchValidate
     * @return
     */
    PageResult<CarSpuListVo> page(CarSpuSearchValidate carSpuSearchValidate);

    CarSpuDetailVo carSpuDetail(Long id);

}
